<include file="public@head" />
</head>

<body>
    <div class="layui-fluid wrap js-check-wrap" id="component-tabs">
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">幻灯片管理</div>
                    <div class="layui-card-body">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li class="layui-this"><a href="{:url('slide/index')}">幻灯片列表</a></li>
                                <li><a href="{:url('slide/add')}">添加幻灯片</a></li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <table class="layui-table">
                                        <thead>
                                            <tr>
                                                <th width="50">ID</th>
                                                <th>幻灯片</th>
                                                <th>备注</th>
                                                <th width="160">{:lang('ACTIONS')}</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <php>
                                            </php>
                                            <foreach name="slides" item="vo">
                                                <tr>
                                                    <td>{$vo.id}</td>
                                                    <td>{$vo.name}</td>
                                                    <td>
                                                        {$vo.remark}
                                                    </td>
                                                    <td>
                                                        <span class="layui-btn-group">
                                                            <a class="layui-btn layui-btn-xs layui-btn-normal" href="{:url('slide/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                                                            <a class="layui-btn layui-btn-xs" href="javascript:parent.openIframeLayer('{:url('slideItem/index',array('slide_id'=>$vo['id']))}','管理 {$vo.name} 页面',{});">管理页面</a>
                                                            <a class="layui-btn layui-btn-xs layui-btn-danger" href="{:url('slide/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
                                                        </span>
                                                    </td>
                                                </tr>
                                            </foreach>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <include file="public@footer" />
</body>

</html>